import axios from "axios";

const config = {
  district_id: 330100,
  data_type: "all",
  ak: "E5QV815RGzUKurwMLPghBtDyeVw0Z2y4",
  output: "json",
};

export const getWeather = (data) => {
  return axios.request({
    url: "http://api.map.baidu.com/weather/v1/",
    method: "GET",
    params: config,
  });
};
